package net.biz.entity;

import javax.persistence.*;
import javax.validation.constraints.NotNull;


@Entity
@Table(name = "xx_record")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "xx_record_sequence")
public class AdminRecord extends BaseEntity {

	/**
	 * 
	 */
//	private static final long serialVersionUID = 1L;
//	private Long id;
//	private Date modifyDate;
//	private Date createDate;
	private Admin admin;

	private String customerName;
	private String customerPhone;
	private String customerArea;
	private String customerHouse;
	private String customerRoom;

	private String system;
	private String infoSource;
	private String department;
	private String store;
	private String recordUserName;
	private String recordUserPhone;
	private Boolean isScheme;

    private String fileUrl;

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    @NotNull
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = false)
	public Admin getAdmin() {
		return admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

    public Boolean getIsScheme() {
        return isScheme;
    }

    public void setIsScheme(Boolean isScheme) {
        this.isScheme = isScheme;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public void setCustomerArea(String customerArea) {
        this.customerArea = customerArea;
    }

    public void setCustomerHouse(String customerHouse) {
        this.customerHouse = customerHouse;
    }

    public void setCustomerRoom(String customerRoom) {
        this.customerRoom = customerRoom;
    }

    public void setSystem(String system) {
        this.system = system;
    }

    public void setInfoSource(String infoSource) {
        this.infoSource = infoSource;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public void setRecordUserName(String recordUserName) {
        this.recordUserName = recordUserName;
    }

    public void setRecordUserPhone(String recordUserPhone) {
        this.recordUserPhone = recordUserPhone;
    }

    public String getCustomerName() {
        return customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public String getCustomerArea() {
        return customerArea;
    }

    public String getCustomerHouse() {
        return customerHouse;
    }

    public String getCustomerRoom() {
        return customerRoom;
    }

    public String getSystem() {
        return system;
    }

    public String getInfoSource() {
        return infoSource;
    }

    public String getDepartment() {
        return department;
    }

    public String getStore() {
        return store;
    }

    public String getRecordUserName() {
        return recordUserName;
    }

    public String getRecordUserPhone() {
        return recordUserPhone;
    }
}
